<?php

namespace app\command\workerman\process\queue;

use app\command\workerman\process\queue\task\Test;
use Workerman\Worker;

class Handler
{
	public function onWorkerStart(Worker $worker): void
	{
		$client = new Client();

		$client->subscribe([
			'test' => Test::class
		]);

		$client->run();
	}
}